cs-salesforce-sapi
📘 API Documentation - cs-salesforce-sapi
This section describes the attributes and usage of the cs-salesforce-sapi API Service.
💂️ Base Information
- API Title: cs-salesforce-sapi
- Version: 1.0.0
- Base URL:
https://cs-salesforce-sapi-{env}-v1.us-e1.cloudhub.io/api/
Replace{env}
with:dev
(Development)qa
(Quality Assurance)prod
(Production)
🔑 Authentication
The API implements two security schemes:
- client-id-enforcement
- OAuth2
Required Headers
Header | Type | Description |
---|---|---|
client_id | String | Unique identifier for API clients |
Authorization | String | OAuth2 authorization token |
- client_id
- Length: 32 - 36 characters
- Example:
123e4567-e89b-12d3-a456-426614174000
- Authorization
- Format: Bearer token
- Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
📌 These headers are required in all requests.
📊 Common Headers
Most endpoints in this API require the following standard request headers:
Header | Type | Required | Description |
---|---|---|---|
Content-Type | String | ✅ | Media type of the request body |
Accept | String | ✅ | Media types acceptable for response |
client_id | String | ✅ | API client identifier |
Authorization | String | ✅ | OAuth2 Bearer token |
Specific endpoints may require additional headers. Refer to the detailed endpoint documentation for specific requirements.
📑 Request & Response Format
Request Format
The API supports the following request formats:
application/json
- For JSON payloadsapplication/octet-stream
- For binary file uploads
Response Format
The API primarily returns responses in:
application/json
- For structured data responsesapplication/octet-stream
- For file downloads
Each response includes appropriate HTTP status codes and headers.
📁 API Structure Overview
This API is organized into several functional areas:
- Work Orders - Management of work orders for services
- File Services - File storage and retrieval services
- Customer Management - Customer information handling
- IVR Integration - Interactive Voice Response system integration
- Document Management - File attachment and consultation
- PQR Handling - Petition, Complaint, and Claim management
- Claims Processing - Claims filing and reporting
- Appointment Scheduling - Management of appointments
- Case Management - Salesforce case operations
- Habeas Data - Personal data processing authorizations
- Senda Integration - Operations for Senda system
For detailed information on each endpoint, including request/response formats and parameters, refer to the specific endpoint documentation.
🔐 Security Schemes
Client ID Enforcement
Field | Type | Required | Length | Regex |
---|---|---|---|---|
client_id | String | Yes | 32 - 36 | [a-zA-Z0-9] |
OAuth2
Field | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | Bearer token for authorization |
The API uses both client_id-enforcement and OAuth2 as security schemes. All requests must include both a valid client_id and OAuth2 Bearer token in the request headers.
⚠️ Error Codes
Code | Description | Suggested Solution |
---|---|---|
400 | Bad Request | Check request syntax and parameters. |
401 | Unauthorized | Validate authentication credentials. |
404 | Not Found | Confirm the endpoint URL. |
500 | Internal Server Error | Retry or contact technical support. |
All API endpoints implement common HTTP error code handling as defined in the API specification.
📚 Endpoint Documentation Example
/claims
Filing indemnities in Salesforce.
- URL:
https://cs-salesforce-sapi-{env}-v1.us-e1.cloudhub.io/api/claims
- Method: POST
- Authentication: client_id and OAuth2
- Required Headers:
- Content-Type: application/json
- Accept: application/json
- client_id: [your-client-id]
- Authorization: Bearer [your-token]
Request Example:
bash
curl -X POST \
https://cs-salesforce-sapi-prod-v1.us-e1.cloudhub.io/api/claims \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'client_id: 123e4567-e89b-12d3-a456-426614174000' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
-d '{
"claimId": "CL-12345",
"policyNumber": "POL-67890",
"claimDate": "2025-05-01",
"claimType": "Accident",
"description": "Vehicle collision at intersection",
"claimAmount": 5000.00,
"claimantInfo": {
"documentType": 1,
"documentNumber": "79533115",
"name": "John Doe",
"contactNumber": "+573102345678"
}
}'
Response Example:
json
{
"status": "success",
"data": {
"claimReference": "REF-CL-98765",
"submissionDate": "2025-05-13T16:20:10Z",
"estimatedResponseTime": "48 hours",
"trackingUrl": "https://claims.colmena.com/track/REF-CL-98765"
}
}
📌 Note: This is just one example endpoint. The API contains multiple endpoints as listed in the API Structure Overview section. For detailed information about other endpoints, please refer to the complete API documentation.
📞 Support
For assistance, contact the Integration Services and Applications Coordination team.
📧 epalma@fgs.co
Last updated: May 2025